package com.yx.controller;

import com.yx.service.TestService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @create 2022-10-27  20:30
 */
@RestController
public class TestServiceController {

    @DubboReference
    private TestService testService;

    @GetMapping("/hello")
    public String sayHello(){
        return testService.sayHello();
    }

}
